/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package src.bd;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Reclamacoes {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private String nomePolitico;

    @Persistent
    private String prometido;

     @Persistent
    private Date data;

    public Reclamacoes(String nomePolitico, String prometido) {
        this.nomePolitico = nomePolitico;
        this.prometido = prometido;
        this.data = new Date();
    }

    public Long getId() {
        return id;
    }

    public String getNomePolitico() {
        return nomePolitico;
    }

    public String getPrometido() {
        return prometido;
    }

    public Date getData() {
        return data;
    }
    
    public void setNomePolitico(String nomePolitico) {
        this.nomePolitico = nomePolitico;
    }

    public void setContent(String prometido) {
        this.prometido = prometido;
    }

    public void setData(Date data) {
        this.data = data;
    }
}

